package com.ftg.learn.chapter8.pattern.singleton.innerclass.lambda;

import com.ftg.learn.chapter04.Dog;

/**
 * 供给型
 *
 * @author kangjx
 * @version 1.0
 * @date 2023/8/1 下午2:29
 */
public interface MySupplier {

    Dog supplier();

    public static void main(String[] args) {
        MySupplier m = () -> new Dog();
        MySupplier m1 = Dog::new;


        //lambda 的简化写法  函数调用

    }

}
